/*
Copyright 2018 BarD Software s.r.o

This file is part of GanttProject, an opensource project management tool.

GanttProject is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
 the Free Software Foundation, either version 3 of the License, or
 (at your option) any later version.

GanttProject is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
GNU General Public License for more details.

You should have received a copy of the GNU General Public License
along with GanttProject.  If not, see <http://www.gnu.org/licenses/>.
*/

* {
    -gp-orange: #ffca28;
    -gp-light-gray: #e0e0e0;
    -gp-medium-gray: #616161;
    -gp-dark-gray: #424242;
}

.toolbar-common {
    -fx-background-color: transparent;
}
.toolbar-common Button {
    -fx-alignment: center;
    -fx-background-color: transparent;
    -fx-border-style: solid;
    -fx-border-color: none;
    -fx-border-width: 0;
    -fx-border-insets: 0;
}
.toolbar-common Button .glyph-icon {
    -fx-alignment: center;
    -fx-fill: -gp-medium-gray;
}
.toolbar-common Button:hover {
    -fx-background-color: derive(-gp-light-gray, -10%);
    -fx-background-radius: 3px;
}

.toolbar-common Button:hover .glyph-icon {
    -fx-fill: derive(-gp-medium-gray, -10%);
}
.toolbar-common Button:pressed, .toolbar-common Button:hover:pressed {
    -fx-background-color: derive(-gp-light-gray, -15%);
}

.toolbar-common Button:pressed .glyph-icon, .toolbar-common Button:hover:pressed .glyph-icon {
    -fx-fill: derive(-gp-medium-gray, -15%);
}
.toolbar-common Separator {
    -fx-min-width: 2em;
    -fx-border-style: none;
}

.toolbar-common Separator > .line {
    -fx-border-style: none;
    -fx-border-width: 0;
}
.toolbar-small {
    -fx-padding: 0;
    -fx-border-color: red;
    -fx-border-width: 0;
    -fx-border-insets: 0;
    -fx-spacing: 0;
}
.toolbar-small Button {
    -fx-min-width: 24px;
    -fx-min-height: 18px;
    -fx-max-height: 24px;
    -fx-pref-height: 24px;
    -fx-pref-width: 24px;

}
.toolbar-small Button .glyph-icon {
    -glyph-size: 18px;
    -fx-padding: 0;
}

.toolbar-small Button:hover .glyph-icon {
    -glyph-size: 18px;
}


.toolbar-main {
    -fx-padding: 1ex 2em 2ex 2em;
}

.toolbar-big Button {
    -fx-min-width: 40px;
    -fx-min-height: 40px;
}
.toolbar-big Button .glyph-icon {
    -glyph-size: 32px;
}

.toolbar-big Button:hover .glyph-icon {
    -glyph-size: 32px;
}

.toolbar-main GridPane {
    -fx-alignment: center;
}

.toolbar-main GridPane CustomTextField {
    -fx-border-color: -gp-medium-gray;
    -fx-border-radius: 3px;
}

.toolbar-main GridPane CustomTextField .glyph-icon {
    -fx-cursor: hand;
}


.progress-bar {
    /*-fx-background-color:*/
    /*        -fx-box-border,*/
    /*        linear-gradient(to bottom, derive(-fx-color,30%) 5%, derive(-fx-color,-17%));*/
    -fx-background-color: transparent;
    -fx-border-style: none;
    -fx-border-width: 0;
    -fx-max-width: 100500;
    -fx-indeterminate-bar-escape: true;
    -fx-indeterminate-bar-flip: true;
    -fx-indeterminate-bar-animation-time: 5;
}

.progress-bar > .bar {
    /*-fx-background-color:*/
    /*        -fx-box-border,*/
    /*        linear-gradient(to bottom, derive(-fx-accent,95%), derive(-fx-accent,10%)),*/
    /*        linear-gradient(to bottom, derive(-fx-accent,38%), -fx-accent);*/
    -fx-border-style: none;
    -fx-border-width: 0;
    -fx-padding: 0.416667em; /* 5 */
}

.progress-bar:indeterminate > .bar {
    /*-fx-background-color: linear-gradient(to left, transparent, -fx-accent);*/
}

.progress-bar > .track {
    /*-fx-background-color:*/
    /*        -fx-box-border,*/
    /*        linear-gradient(to bottom, derive(-fx-color,-15%), derive(-fx-color,2.2%) 20%, derive(-fx-color,60%));*/
    -fx-background-color: transparent;
    -fx-background-insets:  0, 1;
}

.progress-bar:disabled {
    -fx-opacity: -fx-disabled-opacity;
}
